import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from "../views/Home"
import Template from "../views/template/index"
import Table from "../views/template/table";
import Excel from "../views/template/excel";
import Word from "../views/template/word";
import Parse from '../views/parse/index';
Vue.use(VueRouter)

const routes=[
  {path: '/',redirect: '/home'},
  {path: '/home',component: Home},
  {path: '/template',component: Template,
  children:[
    {path:'/table',component: Table},
    {path: '/excel',component: Excel},
    {path: '/word',component: Word}
  ]},
  {path: '/parse',component: Parse}
]

const router = new VueRouter({
  routes
})

export default router